# 拉取clickhouse镜像
docker pull yandex/clickhouse-server
docker pull yandex/clickhouse-client

# 运行ClickHouse服务
docker run -d --name=clickhouse-server -p 8123:8123 -p 9000:9000 -p 9009:9009 --ulimit nofile=262144:262144  yandex/clickhouse-server

#  进入clickhouse容器
docker exec -it clickhouse-server bash

# 运行客户端
clickhouse-client

# 查看clickhouse数据库
show databases;

# 退出clickhouse-client/ 退出docker bash
exit
